import java.util.Scanner;

public class Test09 {
    static void main() {
        Scanner sc = new Scanner(System.in);
        int res = 8;
        for (int i = 1; i <= 5; i++) {
            if (i != 1) {
                System.out.println("，继续猜");
            }
            System.out.println("请输入一个数：");
            int num = sc.nextInt();
            if (num == res) {
                System.out.println("你真聪明，猜对了！");
                break;
            }
            if (num > res) {
                System.out.println("大了");
                System.out.println("，继续猜");
            }
            if (num > res) {
                System.out.println("小了");
            }
            if (i == 5) {
                System.out.println();
                System.out.println("真笨，不跟你玩了");
                break;
            }
        }
    }
}
